<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>Free HTML5 Bootstrap Admin Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
    <meta name="author" content="Muhammad Usman">

    <!-- The styles -->
    <link id="bs-css" href="/jiutaimu/Public/admin/css/bootstrap-cerulean.min.css" rel="stylesheet">

    <link href="/jiutaimu/Public/admin/css/charisma-app.css" rel="stylesheet">
    <link href='/jiutaimu/Public/admin/bower_components/fullcalendar/dist/fullcalendar.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/bower_components/fullcalendar/dist/fullcalendar.print.css' rel='stylesheet' media='print'>
    <link href='/jiutaimu/Public/admin/bower_components/chosen/chosen.min.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/bower_components/colorbox/example3/colorbox.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/bower_components/responsive-tables/responsive-tables.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/jquery.noty.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/noty_theme_default.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/elfinder.min.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/elfinder.theme.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/jquery.iphone.toggle.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/uploadify.css' rel='stylesheet'>
    <link href='/jiutaimu/Public/admin/css/animate.min.css' rel='stylesheet'>

    <!-- jQuery -->
    <script src="/jiutaimu/Public/admin/bower_components/jquery/jquery.min.js"></script>


    <!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- The fav icon -->
    <link rel="shortcut icon" href="/jiutaimu/Public/admin/img/favicon.ico">

</head>

<body>
    <div class="page-content">
    
                <!-- left menu ends -->
    <!-- topbar starts -->
    <div class="navbar navbar-default" role="navigation">

        <div class="navbar-inner">
            <button type="button" class="navbar-toggle pull-left animated flip">
                <span class="sr-only">123</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="index.html"> <img alt="Charisma Logo" src="/jiutaimu/Public/images/3.jpg" class="hidden-xs"/>
                <span>久泰木</span></a>

            <!-- user dropdown starts -->
            <div class="btn-group pull-right">
                <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    <i class="glyphicon glyphicon-user"></i><span class="hidden-sm hidden-xs"><?php echo ($_SESSION['user']['user_name']); ?></span>
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                    <li><a href="#" data-toggle="modal" data-target="#password-modal" class="btn btn-default btn-flat">修改密码</a></li>
                    <li class="divider"></li>
                    <li><a class="btn btn-default btn-flat" href="/jiutaimu/admin.php/Login/logout">退出登陆</a></li>
                </ul>
            </div>
            <!-- user dropdown ends -->
        </div>
    </div>
    <!-- topbar ends -->

            <!--modal start-->
        <div class="modal fade" id="password-modal">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                        <h4 class="modal-title"> 修改密码</h4>
                    </div>
                    <form role="form" method="post" action="/jiutaimu/admin.php/Login/news_password">
                        <div class="modal-body">
                            <div class="form-group">
                                <label style="text-align: left">新密码</label>
                                <input type="password" class="form-control" name="password">
                            </div>
                            <div class="form-group">
                                <label style="text-align: left">确认密码</label>
                                <input type="password" class="form-control" name="password_confirmation">
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
                            <button type="submit" class="btn btn-primary">保存</button>
                        </div>
                    </form>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
        <!--modal end-->
<div class="ch-container">
    <div class="row">
        
        <!-- left menu starts -->
        <div class="col-sm-2 col-lg-2">
            <div class="sidebar-nav">
                <div class="nav-canvas">
                    <div class="nav-sm nav nav-stacked">

                    </div>
                    <ul class="nav nav-pills nav-stacked main-menu">
                        <li class="nav-header">菜单</li>
                        <li><a class="ajax-link" href="/jiutaimu/admin.php/Index/index"><i class="glyphicon glyphicon-home"></i><span> 轮播图管理</span></a>
                        </li>

                        <li><a class="ajax-link" href="/jiutaimu/admin.php/Case/index"><i class="glyphicon glyphicon-list-alt"></i><span> 案例类型</span></a>
                        </li>
                        <li><a class="ajax-link" href="/jiutaimu/admin.php/Caseb/index"><i class="glyphicon glyphicon-font"></i><span> 案例内容管理</span></a>
                        </li>
                         <li><a class="ajax-link" href="/jiutaimu/admin.php/NewsType/index"><i class="glyphicon glyphicon-list-alt"></i><span> 新闻类型</span></a>
                        </li>
                        <li><a class="ajax-link" href="/jiutaimu/admin.php/News/index"><i class="glyphicon glyphicon-font"></i><span> 新闻内容管理</span></a>
                        </li>
                        <li><a class="ajax-link" href="/jiutaimu/admin.php/Messages/index"><i class="glyphicon glyphicon-picture"></i><span> 留言管理</span></a>
                        </li>
                          <li><a class="ajax-link" href="/jiutaimu/admin.php/Team/index"><i class="glyphicon glyphicon-eye-open"></i><span> 我的团队管理</span></a>
                        </li>
                        <li><a class="ajax-link" href="/jiutaimu/admin.php/About/index"><i class="glyphicon glyphicon-eye-open"></i><span> 关于我们</span></a>
                        </li>
                        <li><a href="/jiutaimu/admin.php/Contact/index"><i class="glyphicon glyphicon-lock"></i><span>联系我们管理</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!--/span-->
  



        
<section class="content col-xs-10">
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h2 class="box-title">新闻管理</h2>
                    <div class="box-tools pull-right">
                        <a href="/jiutaimu/admin.php/News/insert" class="btn btn-sm btn-primary">添加</a>
                    </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                    <table id="example2" class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>标题</th>
                            <th>案例类型</th>
                            <th>排序</th>
                            <th>添加时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                          <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                            <td><?php echo ($key+1); ?></td>
                            <td><?php echo ($vo["title"]); ?></td>
                            <td><?php echo ($vo["t_name"]); ?></td>
                            <td><?php echo ($vo["sort"]); ?></td>
                            <td><?php echo ($vo["createtime"]); ?></td>
                            <td class="center">
                                </a>
                                <a class="btn btn-info" href="/jiutaimu/admin.php/News/update?id=<?php echo ($vo["id"]); ?>">
                                    <i class="glyphicon glyphicon-edit icon-white"></i>
                                    修改
                                </a>
                                <a class="btn btn-danger" href="/jiutaimu/admin.php/News/delete?id=<?php echo ($vo["id"]); ?>" onClick="return confirm('确认要删除？');">
                                    <i class="glyphicon glyphicon-trash icon-white"></i>
                                    删除
                                </a>
                            </td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                         </tbody>
                    </table>
                </div><!-- /.box-body -->
            </div><!-- /.box -->

        </div>
    </div>
</section>



          
        
    <footer class="row">
        <p class="col-md-9 col-sm-9 col-xs-12 copyright">&copy; <a href="http://usman.it" target="_blank">Muhammad
                Usman</a> 2012 - 2015</p>

        <p class="col-md-3 col-sm-3 col-xs-12 powered-by">Powered by: <a
                href="http://usman.it/free-responsive-admin-template">Charisma</a></p>
    </footer>
      <script src="/jiutaimu/Public/admin/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- library for cookie management -->
<script src="/jiutaimu/Public/admin/js/jquery.cookie.js"></script>
<!-- calender plugin -->
<script src='/jiutaimu/Public/admin/bower_components/moment/min/moment.min.js'></script>
<script src='/jiutaimu/Public/admin/bower_components/fullcalendar/dist/fullcalendar.min.js'></script>
<!-- data table plugin -->
<script src='/jiutaimu/Public/admin/js/jquery.dataTables.min.js'></script>

<!-- select or dropdown enhancer -->
<script src="/jiutaimu/Public/admin/bower_components/chosen/chosen.jquery.min.js"></script>
<!-- plugin for gallery image view -->
<script src="/jiutaimu/Public/admin/bower_components/colorbox/jquery.colorbox-min.js"></script>
<!-- notification plugin -->
<script src="/jiutaimu/Public/admin/js/jquery.noty.js"></script>
<!-- library for making tables responsive -->
<script src="/jiutaimu/Public/admin/bower_components/responsive-tables/responsive-tables.js"></script>
<!-- tour plugin -->
<script src="/jiutaimu/Public/admin/bower_components/bootstrap-tour/build/js/bootstrap-tour.min.js"></script>
<!-- star rating plugin -->
<script src="/jiutaimu/Public/admin/js/jquery.raty.min.js"></script>
<!-- for iOS style toggle switch -->
<script src="/jiutaimu/Public/admin/js/jquery.iphone.toggle.js"></script>
<!-- autogrowing textarea plugin -->
<script src="/jiutaimu/Public/admin/js/jquery.autogrow-textarea.js"></script>
<!-- multiple file upload plugin -->
<script src="/jiutaimu/Public/admin/js/jquery.uploadify-3.1.min.js"></script>
<!-- history.js for cross-browser state change on ajax -->
<script src="/jiutaimu/Public/admin/js/jquery.history.js"></script>
<!-- application script for Charisma demo -->
<!-- <script src="/jiutaimu/Public/admin/js/charisma.js"></script> -->

        

    </div>
</body>
</html>